(function(){ 
    //Section 1 : 按下自定义按钮时执行的代码 
    var a= { 
        exec:function(editor){ 
    		if(editContentType ==1){
	            document.getElementById("toEmailFile").style.display = "none"; 
    		}else if(editContentType==2){
    			document.getElementById("toMessageFile").style.display = "none"; 
    		}else{
    			document.getElementById("toWXFile").style.display = "none"; 
    		}
        } 
    }, 
    //Section 2 : 创建自定义按钮、绑定方法 
    b='closeButton'; 
    CKEDITOR.plugins.add(b,{ 
        init:function(editor){ 
            editor.addCommand(b,a); 
            editor.ui.addButton('closeButton',{ 
                label:'关闭',
                icon: this.path + 'close.png', 
                command:b 
            }); 
        } 
    }); 
})();